package com.better.backend.dataComputingService.model.scoreSelection;


import com.better.common.mongo.model.BaseModel;
import com.better.consist.GlobalTypeEnum;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Administrator on 2017/11/14.
 */
@Data
public class SeleStudentScoreCalModel extends BaseModel implements Serializable {
    /**
     * 分数段
     */
    private Integer selectValue;
    /**
     *  分数段name
     */
    private String selectValueName;
    /**
     *  踩线生name
     */
    private String footFaultName;
    /**
     * 踩线标准
     */
    private Integer footFault;
    /**
     * 类别(上、下)
     */
    private Integer type;
    /**
     *  踩线类别name
     */
    private String typeName;

    private String studentId;        // 学生id
    private String studentNo;  //学号
    private String IDCard; //身份证号
    private String studentName;  //学生姓名
    private Double totalScore;  //总分
    private Double totalAvg;    //总分平均分
    private int classSortNum;//班级排名(后续计算出来)
    private int schoolSortNum;//年级排名(后续计算出来）

    private List<SeleSubujectScoreCalModel> seleSubujectScoreList;

    public String getSelectValueName() {
        if(this.selectValue !=null)
            return GlobalTypeEnum.getName(this.selectValue);
        return "";
    }

    public String getFootFaultName() {
        if(this.footFault !=null)
            return GlobalTypeEnum.getName(this.footFault);
        return "";
    }
}
